@font-face {
    font-family: 'Shag-Lounge';
    src: url('/Shag-Lounge.otf') format('opentype');
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-image: url('/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    font-family: 'Shag-Lounge', Arial, sans-serif;
    color: black;
}

#game-container {
    text-align: center;
}

#timer {
    font-size: 4rem;
    color: black;
    margin-bottom: 20px;
}

#water-container {
    width: 300px;
    height: 300px;
    background-image: url('/headin.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    overflow: hidden;
    transition: background-image 0.5s;
}

#person-head {
    display: none; /* Remove the separate head element */
}

#cop {
    width: 200px;  /* Adjusted to match image size */
    height: 200px; /* Adjusted to match image size */
    background-image: url('/DoNutGetCaughtByCop.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.5s;
    z-index: 10;
}

#instructions {
    color: black;
    margin-top: 20px;
}

#game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0,0,0,0.8);
    color: white;
    padding: 20px;
    text-align: center;
    z-index: 20;
}

#restart-btn {
    font-family: 'Shag-Lounge', Arial, sans-serif;
    background-color: yellow;
    color: black;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    margin-top: 10px;
}

.hidden {
    display: none;
}

#leaderboard {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(255,255,255,0.8);
    padding: 15px;
    border-radius: 10px;
    min-width: 200px;
    font-family: 'Shag-Lounge', Arial, sans-serif;
}

#leaderboard h3 {
    margin-top: 0;
    text-align: center;
    color: black;
}

#highest-scorer-container {
    margin-top: 10px;
    text-align: center;
    color: black;
}

#leaderboard-list {
    list-style-type: decimal;
    padding-left: 20px;
    margin: 0;
}

#leaderboard-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

#leaderboard-list .player-name {
    text-align: left;
}

#leaderboard-list .player-score {
    text-align: right;
}

.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    text-align: center;
    font-family: 'Shag-Lounge', Arial, sans-serif;
}

.modal-content h2 {
    color: red;
    margin-bottom: 20px;
}

.modal-content p {
    margin-bottom: 20px;
    line-height: 1.6;
}

#accept-warning {
    font-family: 'Shag-Lounge', Arial, sans-serif;
    background-color: yellow;
    color: black;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}

#special-message {
    font-family: 'Shag-Lounge', Arial, sans-serif;
    font-size: 1rem;
    max-width: 600px;
    margin: 20px auto;
    text-align: center;
}

#bot-container {
    position: absolute;
    top: 20px;
    left: 20px;
}

#bot-button {
    width: 100px;  /* Increased from 50px */
    height: 100px; /* Increased from 50px */
    cursor: pointer;
    transition: transform 0.2s;
}

#bot-button:hover {
    transform: scale(1.1);
}

#bot-button.active {
    filter: brightness(1.5);
}